package cn.com.headfree.file.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.gta.edu.sdk.base.service.impl.BaseServiceImpl;

import cn.com.headfree.file.dao.IFileDao;
import cn.com.headfree.file.entity.TCommonFile;
import cn.com.headfree.file.service.IFileService;

@Service("fileService")
public class FileServiceImpl extends BaseServiceImpl<TCommonFile> implements IFileService{

	@Autowired
	private IFileDao fileDao;

	@Override
	public List<TCommonFile> findFile(String sysCode, String businessId, String businessNode) {
		return this.fileDao.findFile(sysCode, businessId, businessNode);
	}

	@Override
	public TCommonFile getFile(String id) {
		return this.get(TCommonFile.class,id);
	}

	@Override
	public void deleteFile(String id) {
		this.fileDao.delete(id);
//		this.delete(TCommonFile.class, id);
	}
}
